cmake_minimum_required(VERSION 3.15)
project(darknet)

set(CMAKE_CXX_STANDARD 11)

include_directories(include)
include_directories(src)
file(GLOB darknet_src src/*.c)
file(GLOB example_src examples/*.c)
add_library(darknetlib ${darknet_src} include/darknet.h )

add_executable(darknet examples/darknet.c ${darknet_src} ${example_src})
target_link_libraries(darknet pthread m)

add_executable(main main.cpp)
target_link_libraries(main darknetlib)

